﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Dazaza.Framework.Configuration
{
    [XmlRoot("WebSite")]
    public class WebSiteConfig
    {
        [XmlElement("SiteName")]
        public string SiteName
        {
            get;
            set;
        }
        [XmlElement("SiteInfo")]
        public SiteInfo SiteInfo
        {
            set;
            get;
        }

        [XmlElement("Resource")]
        public Resource Resource
        {
            get;
            set;
        }

    }

    public class Resource
    {
        [XmlElement("Css")]
        public ResourceItem Css
        {
            get;
            set;
        }

        [XmlElement("Img")]
        public ResourceItem Img
        {
            get;
            set;
        }

        [XmlElement("Js")]
        public ResourceItem Js
        {
            get;
            set;
        }
    }

    public class ResourceItem
    {
        [XmlAttribute("address")]
        public string Address
        {
            get;
            set;
        }

       [XmlAttribute("secureAddress")]
        public string SecureAddress
        {
            get;
            set;
        }
    }



    public class SiteInfo
    {
        [XmlElement("SiteName")]
        public string SiteName
        {
            get;
            set;
        }

        [XmlElement("KeyWord")]
        public string KeyWord
        {
            get;
            set;
        }

        [XmlElement("Description")]
        public string Description
        {
            get;
            set;
        }
    }
}
